import { createApp, defineAsyncComponent, h } from "vue";
/* --- */
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
/* --- */

import App from "./App.vue";

const app = createApp({ render: () => h(App) });

app.use(ElementPlus);

// 全局指令
app.directive("css", {
  mounted(el) {
    console.log("hello", el);
    el.style.color = "red";
  },
});

app.mount("#app");
